package com.zimin.common.annotation;

import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Component;

import java.lang.annotation.*;

/**
 * 主要用途：自定义Biz层扫描注解
 * 官方默认提供的{@link org.springframework.stereotype.Service}只允许添加在service层
 *
 * @author zimin
 * @since 2021/10/18 9:37 上午
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Component
public @interface Biz {

    /**
     * <p>{@link org.springframework.core.annotation.AliasFor} 用于为注解属性声明别名</p>
     */
    @AliasFor(
            annotation = Component.class
    )
    String value() default "";

}
